from django.contrib import admin
from vika.meal.models import Restaurant, Course, Order, GuestBook

class OrderAdmin(admin.ModelAdmin):
    #date_hierarchy = 'dt'
    list_display  = ('__unicode__','dt')
    list_filter =  ('dt',)
    
    ordering = ('course__resta__name', 'course', '-dt',)

admin.site.register(Restaurant)
admin.site.register(Course)
admin.site.register(Order, OrderAdmin)
admin.site.register(GuestBook)
